package text;

import util.DBUtill;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;

public class Test {
    public static void main(String[] agrs){
        Connection con= DBUtill.getCon();
        ResultSet rs=DBUtill.find("select * from diaryinfo");
        try {
            while (rs.next()){
                System.out.println(rs.getString(6));
            }
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
